<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>随访记录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            font-size: 14px;
            line-height: 1.5;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px;
        }

        .section-title {
            font-size: 16px;
            font-weight: bold;
            padding: 10px 15px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #e3e8ee;
            margin-bottom: 0;
        }

        .card {
            background: #fff;
            border-radius: 5px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .card-body {
            padding: 15px;
        }

        /* 医嘱详情样式 */
        .advice-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .advice-row {
            display: flex;
        }

        .advice-label {
            flex: 0 0 100px;
            color: #666;
            font-weight: 500;
        }

        .advice-content {
            flex: 1;
        }

        .advice-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 10px;
        }

        .advice-item-number {
            flex: 0 0 20px;
            color: #666;
        }

        .advice-item-content {
            flex: 1;
        }

        .advice-text {
            color: #333;
            line-height: 1.8;
        }

        .medication-record {
            border-top: 1px solid #eee;
            padding-top: 15px;
            margin-top: 5px;
        }

        .medication-record-item {
            display: flex;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px dashed #eee;
        }

        .medication-record-item:last-child {
            border-bottom: none;
        }

        /* 表格样式 */
        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th,
        .table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .table th {
            font-weight: 500;
            color: #666;
            background-color: #f9f9f9;
        }

        .table tr:last-child td {
            border-bottom: none;
        }

        /* 血压图表 */
        .chart-container {
            position: relative;
            height: 200px;
            margin: 20px 0;
        }

        .chart-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .chart-bg-line {
            position: absolute;
            left: 0;
            right: 0;
            height: 1px;
            background-color: #e6e9f0;
        }

        .chart-y-axis {
            position: absolute;
            top: 0;
            left: 0;
            width: 40px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 5px 0;
            color: #999;
            font-size: 12px;
        }

        .chart-y-label {
            text-align: right;
            padding-right: 10px;
        }

        .chart-x-axis {
            position: absolute;
            bottom: -25px;
            left: 40px;
            right: 0;
            display: flex;
            justify-content: space-between;
            color: #999;
            font-size: 12px;
        }

        .chart-line {
            position: absolute;
            top: 0;
            left: 40px;
            right: 0;
            height: 100%;
            z-index: 2;
        }

        .chart-data-line {
            stroke: #4a9df8;
            stroke-width: 2;
            fill: none;
        }

        .chart-data-area {
            fill: rgba(74, 157, 248, 0.1);
        }

        /* 指标卡片 */
        .indicators {
            display: flex;
            gap: 15px;
            margin: 15px 0;
        }

        .indicator-card {
            flex: 1;
            padding: 15px;
            border-radius: 5px;
            text-align: center;
        }

        .indicator-card-blue {
            background-color: #f0f7ff;
        }

        .indicator-card-green {
            background-color: #f0fff4;
        }

        .indicator-card-orange {
            background-color: #fff7e6;
        }

        .indicator-value {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .indicator-title {
            color: #666;
            font-size: 13px;
        }

        .indicator-change {
            font-size: 12px;
            margin-top: 5px;
        }

        .text-success {
            color: #52c41a;
        }

        .text-danger {
            color: #f5222d;
        }

        .text-warning {
            color: #faad14;
        }

        .text-primary {
            color: #1890ff;
        }

        /* 操作按钮 */
        .action-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 15px;
        }

        .btn {
            padding: 6px 15px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
        }

        .btn-default {
            background-color: #f0f2f5;
            color: #333;
        }

        .btn-primary {
            background-color: #1890ff;
            color: white;
        }

        /* 状态标签 */
        .status-tag {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
        }

        .status-success {
            background-color: #f6ffed;
            border: 1px solid #b7eb8f;
            color: #52c41a;
        }

        .status-warning {
            background-color: #fffbe6;
            border: 1px solid #ffe58f;
            color: #faad14;
        }

        .status-danger {
            background-color: #fff2f0;
            border: 1px solid #ffccc7;
            color: #ff4d4f;
        }

        /* 日期记录 */
        .record-date {
            color: #999;
            font-size: 12px;
        }

        .highlight-link {
            color: #1890ff;
            text-decoration: none;
        }

        .highlight-link:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="container">
    <h3 class="section-title">随访记录</h3>

    <div class="card">
        <div class="card-body">
            <div class="advice-section">
                <div class="advice-row">
                    <div class="advice-label">医嘱详情</div>
                    <div class="advice-content">
                        <div class="advice-item">
                            <div class="advice-item-number">1.</div>
                            <div class="advice-item-content">复诊时携带：所有的检查单和检查报告</div>
                        </div>
                        <div class="advice-item">
                            <div class="advice-item-number">2.</div>
                            <div class="advice-item-content">平稳用药：保持血药浓度平和</div>
                        </div>
                        <div class="advice-item">
                            <div class="advice-item-number">3.</div>
                            <div class="advice-item-content">生活方式干预：控制饮食、规律运动</div>
                        </div>
                    </div>
                </div>

                <div class="advice-row">
                    <div class="advice-label">主诉描述</div>
                    <div class="advice-content">
                        <div class="advice-text">右侧第一趾趾关节疼痛，肿胀，活动受限</div>
                        <div class="advice-text">右侧第一趾趾关节疼痛，肿胀，活动受限</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="card">
        <h3 class="section-title">处方信息</h3>
        <div class="card-body">
            <table class="table">
                <thead>
                <tr>
                    <th>药品名称</th>
                    <th>剂量</th>
                    <th>用法用量</th>
                    <th>用药周期</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>非布司他片</td>
                    <td>100mg</td>
                    <td>每日1次，每次1片</td>
                    <td>30天</td>
                    <td><span class="status-tag status-success">服用中</span></td>
                </tr>
                <tr>
                    <td>秋水仙碱片</td>
                    <td>0.5mg</td>
                    <td>每日2次，每次1片</td>
                    <td>5天</td>
                    <td><span class="status-tag status-warning">已完成</span></td>
                </tr>
                <tr>
                    <td>布洛芬缓释胶囊</td>
                    <td>300mg</td>
                    <td>每日2次，每次1粒</td>
                    <td>7天</td>
                    <td><span class="status-tag status-warning">已完成</span></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="card">
        <h3 class="section-title">血压</h3>
        <div class="card-body">
            <div class="chart-container">
                <div class="chart-bg">
                    <div class="chart-bg-line" style="top: 0%"></div>
                    <div class="chart-bg-line" style="top: 20%"></div>
                    <div class="chart-bg-line" style="top: 40%"></div>
                    <div class="chart-bg-line" style="top: 60%"></div>
                    <div class="chart-bg-line" style="top: 80%"></div>
                    <div class="chart-bg-line" style="top: 100%"></div>
                </div>

                <div class="chart-y-axis">
                    <div class="chart-y-label">600</div>
                    <div class="chart-y-label">500</div>
                    <div class="chart-y-label">400</div>
                    <div class="chart-y-label">300</div>
                    <div class="chart-y-label">200</div>
                    <div class="chart-y-label">100</div>
                    <div class="chart-y-label">0</div>
                </div>

                <div class="chart-x-axis">
                    <div>01/11/23</div>
                    <div>03/14/23</div>
                    <div>05/20/23</div>
                    <div>10/05/23</div>
                    <div>12/31/23</div>
                </div>

                <svg class="chart-line" viewBox="0 0 600 200" preserveAspectRatio="none">
                    <path class="chart-data-area" d="M0,50 L100,55 L200,60 L300,65 L400,70 L500,75 L600,80 L600,200 L0,200 Z"></path>
                    <path class="chart-data-line" d="M0,50 L100,55 L200,60 L300,65 L400,70 L500,75 L600,80"></path>
                </svg>
            </div>

            <div class="action-buttons">
                <button class="btn btn-default">近7天</button>
                <button class="btn btn-default">近30天</button>
                <button class="btn btn-primary">查看</button>
            </div>

            <div class="indicators">
                <div class="indicator-card indicator-card-blue">
                    <div class="indicator-value">486 μmol/L</div>
                    <div class="indicator-title">血尿酸浓度</div>
                    <div class="indicator-change text-success">较上次 -18%</div>
                </div>

                <div class="indicator-card indicator-card-green">
                    <div class="indicator-value">92%</div>
                    <div class="indicator-title">服药依从性</div>
                    <div class="indicator-change">优秀水平</div>
                </div>

                <div class="indicator-card indicator-card-orange">
                    <div class="indicator-value">2次</div>
                    <div class="indicator-title">随访次数</div>
                    <div class="indicator-change">每周一次</div>
                </div>
            </div>
        </div>
    </div>

    <div class="card">
        <div class="card-body">
            <table class="table">
                <thead>
                <tr>
                    <th>日期</th>
                    <th>就诊时间</th>
                    <th>药品</th>
                    <th>剂量</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>2023-10-15</td>
                    <td>08:30</td>
                    <td>非布司他片</td>
                    <td>100mg</td>
                    <td><span class="status-tag status-success">已服用</span></td>
                </tr>
                <tr>
                    <td>2023-10-14</td>
                    <td>09:15</td>
                    <td>非布司他片</td>
                    <td>100mg</td>
                    <td><span class="status-tag status-warning">已服用</span></td>
                </tr>
                <tr>
                    <td>2023-10-13</td>
                    <td>-</td>
                    <td>非布司他片</td>
                    <td>100mg</td>
                    <td><span class="status-tag status-danger">漏服</span></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>
